#!/usr/bin/python
#
#2008 Julka Lipkova

from optparse import OptionParser


parser = OptionParser()

parser.add_option("-s", "--scribbler", dest = "moduleToRun", action = "store_const", const = "scribbler", help = "Run the child application (scribbler).")
parser.add_option("-e", "--editor", dest = "moduleToRun", action = "store_const", const = "editor", help = "Run the glyph editor.")

parser.set_defaults( moduleToRun = "scribbler" )

(options, args) = parser.parse_args()

if ( options.moduleToRun == "scribbler" ):
	from scribbler.scribbler import Scribbler
	scribbler = Scribbler()

	scribbler.run()

if ( options.moduleToRun == "editor" ):
	from scribbler.editor import Editor
	editor = Editor()

	editor.run()


# vim: set ts=4 sw=4 sts=4 :
